FROM node:lts-slim
WORKDIR /app
COPY fonts/* /usr/share/fonts/
COPY app.js package.json /app/
# RUN npm install
# RUN apt update && apt install -y ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy xfonts-intl-chinese fonts-arphic-uming fonts-noto
RUN apt update && apt install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev && rm -rf /var/lib/apt/lists/*
RUN npm install --production

# COPY . .

EXPOSE 3000

CMD ["npm", "start"]